﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Course" Object="Course" InnerID="Request.QueryString['CourseID']" />
<section data-page="lesson_list" data-title="课件列表" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="../list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">课程列表</a> → <b class="<%=ContentLang%>Font"><%=Course[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Mark="System" Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<div class="ali-tabs sub-nav" data-height-style="fill" data-event="click">
		<div class="ali-tabs-header">
			<div class="ali-tabs-nav-container">
				<ul>
					<li><a href="../edit.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["CourseID"]%>" target="ali-navtab">编辑</a></li>
					<li class="ali-active"><a>课件列表</a></li>
					<li><a href="add.aspx?Lang=<%=ContentLang%>&amp;CourseID=<%=Request.QueryString["CourseID"]%>" target="ali-navtab">添加课件</a></li>
				</ul>				
			</div>
		</div>
		<div class="ali-tabs-body">
			<div class="ali-tabs-panel"></div>
			<div class="ali-tabs-panel">
				<table data-ali-widget="grid" class="grid1">
					<thead>
						<tr>
							<th width="40">序号</th>
							<th>名称</th>
							<th width="100">播放时长</th>
							<th width="60">试用长度</th>
							<th width="60">人气</th>
							<th width="60">删除</th>
						</tr>
					</thead>
					<tbody>
						<ali:List Object="Lesson" Condition="CourseID=Course[ID]" Validate="True">
							<ali:Record>
								<tr data-id="<%=InnerID%>">
									<td><%=Sort%></td>
									<td<%If Convert.ToBoolean(IsChapter)%> style="font-weight:bold;text-align:center"<%Else%> style="text-align:start"<%EndIf%>><a href="edit.aspx?Lang=<%=ContentLang%>&amp;CourseID=<%=Request.QueryString["CourseID"]%>&amp;ID=<%=InnerID%>" target="ali-navtab" class="<%=ContentLang%>Font"><%=Name%></a></td>
									<td><%If !Convert.ToBoolean(IsChapter)%><%=Duration%>秒<%EndIf%></td>
									<td><%If !Convert.ToBoolean(IsChapter)%><%If Convert.ToInt32(FreeDuration) > 0%><%=FreeDuration%>秒<%Else%>不能试用<%EndIf%><%EndIf%></td>
									<td><%If !Convert.ToBoolean(IsChapter)%><%=HitCount%><%EndIf%></td>
									<td><a class="ali-button" data-operation="Delete">删除</a></td>
								</tr>
							</ali:Record>
						</ali:List>
					</tbody>
				</table>
			</div>
		</div>
		<div class="ali-tabs-bottom"><b></b></div>
	</div>
</section>